/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author ccadavid
 */
@Embeddable
public class AmvxpPK implements Serializable {
    
	private static final long serialVersionUID = -7611075351545155787L;
	@Basic(optional = false)
    @Column(name = "APXIDE")
    private int apxide;
    @Basic(optional = false)
    @Column(name = "AOPIDE")
    private int aopide;

    public AmvxpPK() {
    }

    public AmvxpPK(int apxide, int aopide) {
        this.apxide = apxide;
        this.aopide = aopide;
    }

    public int getApxide() {
        return apxide;
    }

    public void setApxide(int apxide) {
        this.apxide = apxide;
    }

    public int getAopide() {
        return aopide;
    }

    public void setAopide(int aopide) {
        this.aopide = aopide;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) apxide;
        hash += (int) aopide;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AmvxpPK)) {
            return false;
        }
        AmvxpPK other = (AmvxpPK) object;
        if (this.apxide != other.apxide) {
            return false;
        }
        if (this.aopide != other.aopide) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidad.AmvxpPK[ apxide=" + apxide + ", aopide=" + aopide + " ]";
    }
    
}
